package com.hss01248.dialog.material;

import com.hss01248.dialog.ResourceTable;
import com.hss01248.dialog.adapter.SuperLvHolder;
import com.hss01248.dialog.config.ChooseBean;
import ohos.agp.components.Checkbox;
import ohos.app.Context;

/**
 * Created by Administrator on 2017/11/19.
 */

public class MultiChooseHolder extends SuperLvHolder<ChooseBean> {
    Checkbox checkedTextView;
    public MultiChooseHolder(Context context) {
        super(context);
    }

    @Override
    protected void findViews() {
        checkedTextView = (Checkbox) rootView;
    }

    @Override
    protected int setLayoutRes() {
        return ResourceTable.Layout_item_md_choose_multi;//R.layout.item_md_choose_multi;
    }

    @Override
    public void assingDatasAndEvents(Context context, ChooseBean bean) {
        checkedTextView.setText(bean.txt.toString());
    }


}
